<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;

class LoginController extends Controller
{
    //

    public function __invoke(){

        if(!empty(request('username'))){

            session()->put('username',123);
            return redirect(route('auth.home'));
        }else{
            return view('auth.login');
        }

    }

}
